<?php foreach ($this->subnavi2 as $x): ?>
     <p>
     <a href="<?php
 
     echo $this->url(array('controller' => $x['kontroler'] ,
         'action' => $x['akcja'], 'title' => $x['tytul'], 'idgenre' => $x['idgenre'])); ?>"><?php echo $x['tytul'] ?></a>
    </p>
 <?php endforeach; ?>